from django.conf.urls import url
from . import views
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [

    ##################账号#############
    url('login',views.LoginIn),
    url('check',views.Check),
    url('usersignup',views.UserSignUp),
    url('salersignup',views.SalerSignUp),
    url('userupdate',views.UserUpdate),
    url('salerupdate',views.SalerUpdate),
    url('personinf',views.GetInformation),
    # url('path', views.path),
    url('img/(?P<filename>.*)',views.img),



    ###############两者操作#####
    url('ChatList', views.ChatList),
    url('salerChat', views.salerChat),
    ###################消费者############
    url('allProduct', views.allProduct),
    url('query', views.query),
    url('myStore', views.myStore),
    url('uniproduct', views.uniproduct),
    url('viewhistory', views.viewhistory),
    url('collectStore', views.collectStore),
    url('directBuy', views.directBuy),
    url('insertShoppingCar', views.insertShoppingCar),
    url('viewCar', views.viewCar),
    url('selFromCar', views.selFromCar),
    url('delFromCar', views.delFromCar),
    url('delAll', views.delAll),
    url('placeOrder', views.placeOrder),
    url('cunshippedOrder', views.cunshippedOrder),
    url('cshippedOrder', views.cshippedOrder),
    url('historyOrder', views.historyOrder),
    url('buyFromCar',views.buyFromCar),
    url('delFromCar',views.delFromCar),
    url('allOrder', views.allOrder),
    url('uniOrder', views.uniOrder),
    url('receive', views.receive),
    url('evalution', views.evalution),
    url('expend', views.expend),
    url('cusChat', views.insertChat),
    url('cloth', views.cloth),
    url('food', views.food),
    url('electronic', views.electronic),
    url('life', views.life),
    url('CusrecentChat', views.CusrecentChat),
    ##################销售商##########
    url('storeProduct', views.storeProduct),
    url('insertProduct', views.insertProduct),
    url('updateProduct', views.updateProduct),
    url('deleteProduct', views.deleteProduct),
    url('colCustomer', views.colCustomer),
    url('unshippedOrder', views.unshippedOrder),
    url('shippedOrder', views.shippedOrder),
    url('servedOrder', views.servedOrder),
    url('detailOrder', views.detailOrder),
    url('deliver', views.deliver),
    url('evaOrder', views.evaOrder),
    url('salChat', views.salChat),
    url('suniProduct', views.suniProduct),
]

urlpatterns = format_suffix_patterns(urlpatterns)